package com.hbnu.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * (AchievementFile)表实体类
 *
 * @author makejava
 * @since 2025-07-22 22:48:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("achievement_file")
public class AchievementFile  {
    //文件id
    @ApiModelProperty(value = "主键 文件id")
    @TableId(value = "fileid" ,type = IdType.ASSIGN_ID)
    private String fileid;
    //文件名
    @ApiModelProperty(value="文件名")
    @TableField(value="filename")
    private String filename;

    @ApiModelProperty(value="文件路径")
    @TableField(value="fileurl")
    private String fileurl;

    @ApiModelProperty(value = "文件大小")
    @TableField(value = "filesize")
    private String filesize;

    @ApiModelProperty(value = "咨询报告id")
    @TableField(value = "achievementid")
    private String achievementid;

    @ApiModelProperty(value = "标志位")
    @TableField(value = "flag")
    private int flag;

    /**
     * 文件上传时间
     */
    @ApiModelProperty(value = "文件上传时间")
    @TableField("filedate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime filedate;


}

